#include "CameraMapReader.hpp"
#include <stdexcept>
#include <fstream>
#include <spdlog/spdlog.h>

CameraMapReader::CameraMapReader()
{
  if(!std::filesystem::exists("config"))
    throw std::runtime_error("CameraMapReader config not exists");
  std::ifstream filestream("config");
  if(!filestream.is_open())
    throw std::runtime_error("Can't open CameraMapReader config");
  filestream>>LoadPath;
  while(true)
  {
    std::string val;
    filestream>>val;
    if(!filestream.good())
      break;
    UUIDList.push_back(val);
  }
  spdlog::info("UUIDList size is {}",UUIDList.size());
}

